package main

import (
	"changeme/android/soul"
	"embed"
	"github.com/wailsapp/wails/v2"
	"github.com/wailsapp/wails/v2/pkg/options"
	"github.com/wailsapp/wails/v2/pkg/options/assetserver"
)

//go:embed all:frontend/dist
var assets embed.FS

func init() {

}

func main() {
	// Create an instance of the app structure
	app := NewApp()
	s := &soul.Soul{}

	// Create application with options
	err := wails.Run(&options.App{
		Title:  "soulAuto",
		Width:  500,
		Height: 768,
		AssetServer: &assetserver.Options{
			Assets: assets,
		},
		DisableResize:    true,
		BackgroundColour: &options.RGBA{R: 225, G: 225, B: 225, A: 225},
		OnStartup:        s.StartUp,
		Bind: []interface{}{
			app,
			s,
		},
	})

	if err != nil {
		println("Error:", err.Error())
	}
}
